document.writeln("<div id=\"contactwidget\">");
document.writeln("  <ul>");
// document.writeln("    <li id=\"wgqq\">");
// document.writeln("      <a href=\"javascript:;\">QQ</a>");
// document.writeln("      <div class=\"wgbox wgbox1\">");
// document.writeln("        <ul>");
// document.writeln("          <li><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=3264852411&site=qq&menu=yes\" rel=\"nofollow\" class=\"qqa\">短信</a></li>");
// document.writeln("          <li><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=1968130037&site=qq&menu=yes\" rel=\"nofollow\" class=\"qqa\">识别</a></li>");
// document.writeln("          <li><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=2601553633&site=qq&menu=yes\" rel=\"nofollow\" class=\"qqa\">征信</a></li>");
// document.writeln("          <li><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=2025445869&site=qq&menu=yes\" rel=\"nofollow\" class=\"qqa\">违章</a></li>");
// document.writeln("          <li><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=3556360569&site=qq&menu=yes\" rel=\"nofollow\" class=\"qqa\">充值</a></li>");
// document.writeln("          <li><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=2195158506&site=qq&menu=yes\" rel=\"nofollow\" class=\"qqa\">快递</a></li>");
// document.writeln("          <li><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=3347188620&site=qq&menu=yes\" rel=\"nofollow\" class=\"qqa\">发票</a></li>");
// document.writeln("          <li><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=3&uin=1406065560&site=qq&menu=yes\" rel=\"nofollow\" class=\"qqa\">其他</a></li>");
// document.writeln("          <li class=\"qqqun\"><a target=\"_blank\" href=\"https://jq.qq.com/?_wv=1027&k=5QNY8dD\" rel=\"nofollow\" class=\"qquna\">QQ群683598772</a></li>");
// document.writeln("        </ul>");
// document.writeln("      </div>");
// document.writeln("      <div id=\"wgqqbotline\"></div>");
// document.writeln("    </li>");
// document.writeln("    <li id=\"wgwx\">");
// document.writeln("      <a href=\"javascript:;\">微信</a>");
// document.writeln("      <div class=\"wgbox wgbox2\">");
// document.writeln("          <img src=\"/static/images/qrcode200.jpg\" height=\"105\" alt=\"极速微信\" /><p>极速数据</p>");
// document.writeln("          <img src=\"/static/images/kandian.jpg\" height=\"105\" alt=\"程序员看点\" /><p>程序员看点</p>");
// document.writeln("      </div>");
// document.writeln("    </li>");
document.writeln("    <li id=\"wgtop\"><a href=\"javascript:;\">TOP</a></li>");
document.writeln("  </ul>");
document.writeln("</div>");


$(window).scroll(function(){
    if($(window).scrollTop()>100)
    {
        $("#wgtop").fadeIn(500);
    }
    else
    {
        $("#wgtop").fadeOut(500);
    }
});

$("#wgtop a").click(function(){
    $('body,html').animate({scrollTop:0},100);
    return false;
});

var isonwgbox = 0;
$("#wgqq>a, #wgwx>a").hover(function(){
    $('.wgbox').hide();
    $(this).siblings('.wgbox').show();
}, function(){
    var _siblings = $(this).siblings('.wgbox');
    setTimeout(function(){
        if(isonwgbox == 0) _siblings.hide();
    },500);
});

$(".wgbox").hover(function(){
    isonwgbox = 1;
}, function(){
    isonwgbox = 0;
    $(this).hide();
});
